package JDBC;

import java.sql.SQLException;

/**
 * 用于测试注册和登录
 * @Author Alex
 */
@Deprecated
public class HomeTest01 {

    public static void main(String[] args) {
        //注册ok
        User chd = new User("czm","123456");
        try {
            //注册
            HomePage.reg(chd);
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

        //登录,测试成功
        User czm = new User("chd","123456");
        try {
            HomePage.login(czm);
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }




}
